@keyframes enter {
  100% {
    opacity: initial;
    transform: initial;
  }
}

@keyframes exit {
  0% {
    opacity: initial;
    transform: initial;
  }
  100% {
    height: 0;
    opacity: 0;
    transform: translateX(-100%);
  }
}

.collect {
  .title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    font-family: PingFangSC-Regular;
    font-size: 15px;
    cursor: pointer;
    user-select: none;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      width: 72%;
      height: 0.5px;
      background-color: #00000026;
      pointer-events: none;
    }

    &:hover {
      font-weight: 600;
    }
  }

  .listWrap {
    position: relative;
    flex: 1;

    .maskTop,
    .maskBottom {
      position: absolute;
      left: 0;
      z-index: 6;
      width: 100%;
      height: 100px;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-duration-fast);

      &.show {
        opacity: 1;
      }
    }

    .maskTop {
      top: 0;
      background: linear-gradient(#ffffffe6, transparent);
    }

    .maskBottom {
      bottom: 0;
      background: linear-gradient(transparent, #ffffffe6);
    }
  }

  .list {
    position: absolute;
    inset: 0;
    overflow: auto;
    user-select: none;
    scroll-behavior: smooth;

    .item {
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 100%;
      height: 30px;
      font-family: PingFangSC-Regular;
      font-size: 14px;
      text-wrap: nowrap;
      cursor: pointer;
      opacity: 0;
      transform: translateX(-100%);
      animation-name: enter;
      animation-duration: 500ms;
      animation-timing-function: ease-out;
      animation-fill-mode: forwards;

      &:hover,
      &.active {
        font-weight: 600;
        background-color: #1e41500d;
      }

      &.exit {
        animation-name: exit;
      }
    }
  }
}

.icon {
  margin-right: 5px;
}
